#include <iostream>
using namespace std;

class cls{
		string str;
	public:
		cls(string s) : str(s){}
		string getstr(){
			return str;
		}
};

class clsdefault{
	private:
		int i;
		cls c; // need not to be initialized
		public:
		clsdefault(int i1=0, string str1="Rong Xiao") : i(i1), c(str1){}
		void print(){
			cout << i << " " << c.getstr() << endl;
		} 
};

int main(){
	clsdefault c1, c2(10,"Wei");
	cls c; // error here!
	c1.print();
	c2.print();
	return 0;
}
